<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="/system/include/taglib.jsp"%>
<html>
<head>
<base href="${pageScope.basePath }">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中山市美斯特实业有限公司</title>
<link type="text/css" rel="stylesheet" href="system/css/style.css" />
<script type="text/javascript" language="javascript" src="system/js/public.js"></script>
<script type="text/javascript" src="system/js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="system/js/validate.js"></script>
		<script type="text/javascript">	
		$(document).ready(function(){
		   validate_Effect("#actionKey","[actionKey不能为空！]");
			   var old_actionKey=$("#actionKey").val();			
					$("#actionKey").change(function(){
					var actionKey=$("#actionKey").val();
					if(actionKey==old_actionKey) return false;
					ajaxRequest_validate("#actionKey","system/ajax/button.do?method=validate",{"actionKey":actionKey});
					});	
				return false;	
		});	
		
    function checkForm(){	
	var actionKeyIsNull=validateValueIsNull("#actionKey");
	if(actionKeyIsNull){
		return false;
	}	
	else{
		return true;
	}
}
		
		</script>



</head>
<body>
<div class="main">
	<div class="position">当前位置: <a href="sysadm/desktop.jsp">桌 面</a> → 添加菜单</div>
	<div class="mainbody">
		<div class="operate_info">操作说明：带 * 号必填</div>
		<div class="table">
		<form action="system/config/button_manage_modify.do" method="post" onsubmit="return checkForm()">
			<mytag:View table="com.zhongkai.model.config.Button" id="${param.button_id }" name="button"></mytag:View>
			<input type="hidden" name="buttonId" value="${button.buttonId}"/>
			<table width="100%" border="0" cellpadding="1" cellspacing="1" class="table_form">
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">按钮名称：</td>
						<td><input name="buttonName" value="${button.buttonName }" disabled="disabled"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">操作键：</td>
						<td><input name="actionKey" id="actionKey" value="${button.actionKey }" />　必填 例如：adduser </td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">按钮相关说明：</td>
						<td><textarea rows="3" cols="20" name="buttonNote" >${button.buttonNote }</textarea>　非必填  </td>
					</tr>
					<tr>
						<td colspan="2" class="form_button" style="padding-top:10px;">
							<input type="submit" value="更新" />
							<input type="button" value="返回" onClick="location.href='${pageScope.basePath }system/config/buttonlist.jsp'" />
						</td>
					</tr>					
			</table>
			</form>
		</div>
	</div>
</div>
</body>
</html>
